<form class="formdaftar" method="post" action="<?php echo base_url()?>home/proses_update">
<input name="iddonatur" type="hidden" size="20" value="<?php echo $data['iddonatur']?>"/>
<center>
    <div class="contentIsi">
		<?php $this->load->view('panel_samping') ?>
		<div class="isi">
            <div class="biodata">
				<div class="title_biodata">
					Edit Biodata Donatur
				</div>
				<div class="foto">
					<?php 
						if ($data['foto']=='')
							$str_foto = base_url()."image/profil/no_pic.gif";
						else
							$str_foto = base_url()."image/profil/".$data['foto']
					?>
					<a title="Kilk untuk mengganti foto" href="<?php echo base_url()?>home/edit_foto_form/<?php echo $this->session->userdata('ID');?>"><img src="<?php echo $str_foto ?>"></a>
				</div>
				<div class="item_biodata">
					<span class="label_biodata label_form">Nama : </span>
					<span class="content_biodata"><input class="text" name="nama" type="text" size="20" value="<?php echo $data['nama']?>"/></span>
				</div>
				<div class="item_biodata">
					<span class="label_biodata">Saldo : </span>
					<span class="content_biodata">Rp <?php echo number_format($data['saldo'], 2, '.', ',') ?></span>
                </div>
				<div class="item_biodata">
					<span class="label_biodata label_form">Email : </span>
					<span class="content_biodata"><input class="text" name="email" type="text" size="20" value="<?php echo $data['email']?>"/></span>
                </div>
				<div class="item_biodata">
					<span class="label_biodata label_form">Kategori : </span>
					<span class="content_biodata">
						<select class="text" name="jenis">
                            <option value="individu" <?php if($data['jenis']=='individu') echo 'selected' ?>>Individu</option>
                            <option value="badan" <?php if($data['jenis']=='badan') echo 'selected' ?>>Badan</option>
                        </select>
					</span>
                </div>
				<div class="item_biodata">
					<span class="label_biodata label_form">Bidang kerja : </span>
					<span class="content_biodata"><input class="text" name="pekerjaan" type="text" size="20" value="<?php echo $data['pekerjaan']?>"/></span>
                </div>
				<div class="item_biodata">
					<span class="label_biodata label_form">Alamat : </span>
					<span class="content_biodata"><textarea class="text" name="alamat" cols="35" rows="3"><?php echo $data['alamat']?></textarea></span>
                </div>
				<div class="item_biodata">
					<span class="label_biodata label_form">No. HP : </span>
					<span class="content_biodata"><input class="text" name="nohp" type="text" size="20" value="<?php echo $data['nohp']?>"/></span>
				</div>
				<br/>
				<br/>
				<center>
                        <input class="button" type="reset" id="button" value="Reset" />
                        &nbsp;
                        <input class="button" type="submit" id="button" value="Submit" />
				</center>
				<br/>
			</div>
		</div>    
		<?php $this->load->view('panel_kanan') ?>
    </div>
</center>
</form>
